import request from "@/utils/request";

export function getPaperList (params) {
  return request({
    url: '/exam/paper/',
    method: "GET",
    params
  });
}
export function getTreeList (query) {
  return request({
    url: "/subject/tree",
    method: "GET",
    query
  });
}

export function deletePaper (id) {
  return request({
    url: `/exam/paper/${id}`,
    method: "DELETE",
  });
}

export function changePaperStatus (id, state) {
  return request({
    url: `/exam/paper/${id}/${state}`,
    method: "GET",
  });
}
